﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="sparepartDetail.aspx.cs" Inherits="sparepartDetail" Title="Untitled Page" %>
<%@ Register Assembly="EclipseWebSolutions.DatePicker" Namespace="EclipseWebSolutions.DatePicker"
    TagPrefix="ews" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">

<asp:Panel runat="server" ID="pnlBody">
    <form>            
    <table class="GridItem" cellspacing="2" cellpadding="2" style="height:310px; width:"auto">              
    
    <tr>
    <td align="center" valign="top" style="width:auto">
                      <table>
                        <tr><td colspan="2" class="BigLabelLeftAlign"><asp:Label ID="lblCodeNumber" 
                                runat="server" ></asp:Label><br />
                            <br /></td></tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Model</td>
                            <td align="left">
                               
                                <asp:DropDownList ID="drlModel" runat="server" Height="25px" Width="184px" 
                                    AppendDataBoundItems="True" 
                                    >
                                    <asp:ListItem Value="-1">--- Choose an equipment model ---</asp:ListItem>
                                </asp:DropDownList>
                                                <asp:Label ID="lblRequiredModel" runat="server" ForeColor="Red"></asp:Label>
                                &nbsp;
                            </td>
                            
                            
                        </tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Purchase company</td>
                            <td align="left">
                                <asp:DropDownList ID="drlSupplier" runat="server" Height="25px" Width="184px" 
                                    AppendDataBoundItems="True" DataSourceID="odsPurchaseCompany" 
                                    DataTextField="SupplierName" DataValueField="SupplierId">
                                    <asp:ListItem Value="-1">--- Company ---</asp:ListItem>
                                </asp:DropDownList>
                                <asp:ObjectDataSource ID="odsPurchaseCompany" runat="server" 
                                    SelectMethod="GetSuppliers" TypeName="Service.ReferenceDataService">
                                </asp:ObjectDataSource>
                                &nbsp;
                                                <asp:Label ID="lblRequiredSupplier" runat="server" 
                                    ForeColor="Red"></asp:Label>
                            </td>
                           
                            
                        </tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Purchase date (mm/dd/yy)</td>
                            <td align="left">
      
                                    <%--<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <ews:DatePicker ID="txtPurchaseDate" runat="server" DateFormatString="MM/dd/yyyy" 
                                                 />
                                        </ContentTemplate>
                                    </asp:UpdatePanel>--%>
                                    <asp:TextBox ID="txtPurchaseDate" runat="server" Width="76px"></asp:TextBox>
                                    <asp:Image ID="imgCalendar" runat="server" ImageUrl="~/images/calendar.png" />
                                    <cc2:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtPurchaseDate" PopupButtonID="imgCalendar">
                                    </cc2:CalendarExtender>
                            </td>
                           
                           
                        </tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Unit Price&nbsp;(Dollar)</td>
                            <td align="left">
                                <asp:TextBox ID="txtUnitPrice" runat="server" Height="17px" Width="148px"></asp:TextBox>
                            </td>
                           
                            
                        </tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Quantity</td>
                            <td align="left">
                                <asp:TextBox ID="txtQuantity" runat="server" Height="17px" Width="148px"></asp:TextBox>
                            </td>
                            
                            
                        </tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Capacity</td>
                            <td align="left">
                                <asp:TextBox ID="txtCapacity" runat="server" Height="17px" Width="148px"></asp:TextBox>
                            </td>
                            
                            
                        </tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Equipment Desc.&nbsp;</td>
                            <td align="left">
                                <asp:TextBox ID="txtPurchaseDescription" runat="server" Height="60px" 
                                    Width="148px"></asp:TextBox>
                            </td>
                            
                            
                        </tr>
                       
                        <tr>
                            <td align="left" style="width: 165px; height: 17px;" colspan ="2">
                                <asp:CheckBox ID="chkDiscontinue" runat="server" Text="Discontinue" />
                            </td>
                            
                            
                             
                        </tr>
                       
                </table>
   </td>
   <td valign="top">
    <table cellspacing="0" cellpadding="0">
        <tr><td colspan="2"><br /><br /><br /><br /><br /><asp:Label ID="Label5" runat="server" Font-Bold="True" 
                        Text="Warranty"></asp:Label><br /></td></tr>
        <tr>
            <td style="width: 145px" align="left" colspan="2">Warranty &nbsp;<asp:CheckBox ID="chkIsWarranty" runat="server" /></td>
        
        </tr>
        
        <tr>  <td align="left" style="width: 145px">
                                &nbsp;</td>
                            <td align="left">
                                &nbsp;</td></tr>
        <tr> <td align="left" style="width: 145px">
                                Start date (mm/dd/yy)</td>
                            <td align="left">
                                  <%--<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <ews:DatePicker ID="txtStartDate" runat="server" DateFormatString="MM/dd/yyyy" 
                                                />
                                        </ContentTemplate>
                                   </asp:UpdatePanel>--%>
                                    <asp:TextBox ID="txtStartDate" runat="server" Width="76px"></asp:TextBox>
                                     <asp:Image ID="Image1" runat="server" ImageUrl="~/images/calendar.png" />
                                     <cc2:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtStartDate" PopupButtonID="Image1">
                                    </cc2:CalendarExtender> 

                                   
                                   
                            </td></tr>
        <tr> <td align="left" style="width: 145px">
                                End date (mm/dd/yyyy)</td>
                            <td align="left">
                                  <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <ews:DatePicker ID="txtEndDate" runat="server" DateFormatString="MM/dd/yyyy" 
                                                />
                                        </ContentTemplate>
                                   </asp:UpdatePanel>--%>
                                   
                                    <asp:TextBox ID="txtEndDate" runat="server" Width="76px"></asp:TextBox>
                                    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/calendar.png" />
                                    <cc2:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtEndDate" PopupButtonID="Image2">
                                    </cc2:CalendarExtender> 

                            </td></tr>
        <tr> <td align="left">
                                Warranty Desc.
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtContractDescription" runat="server" Height="60px" 
                                    Width="148px"></asp:TextBox>
                            </td>
         </tr>
        
            <tr>
            <td align="left" style="width: 165px; height: 77px;">
                                &nbsp;</td>
                            <td align="left" style="height: 77px">
                                &nbsp;</td>
                      
            </tr>   
            <tr>   <td align="left" colspan="2"> 
            
    <asp:Button ID="btnValidate" runat="server" Height="25px" Text="Validate" 
        Width="71px" BorderStyle="Dotted" CssClass="btnexpress" onclick="btnValidate_Click"  /> 
                &nbsp;<asp:Label ID="lblMessageValidate" runat="server" CssClass="permissionstyle"></asp:Label>
        
               
                <br /></td></tr>     
                <tr> <td  style="width:350px" align="left" colspan="2" >
                <asp:Label ID="lblInformation" runat="server" CssClass="permissionstyle" ></asp:Label>
                </td>
                </tr>                 
                                
                                
     </table>
     </td>
     </tr>
    </table>
                            
               
    </form>
    </asp:Panel>
</asp:Content>

